package com.itheima.factory.abstract_factory;

/**
 * @author zzw
 * @date 2025/9/21
 * @description 客户端
 */
public class Client {
    public static void main(String[] args) {
        //        DessertFactory factory = new AmericanDessertFactory();
        DessertFactory factory = new ItalyDessertFactory();
        Coffee coffee = factory.createCoffee();
        Dessert dessert = factory.createDessert();
        System.out.println(coffee.getName());
        dessert.show();
    }
}
